﻿<Window x:Class="S7.Windows.Orders.ShowOrders"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:dg="http://schemas.microsoft.com/wpf/2008/toolkit"
    Title="All Orders" Height="600" Width="800" WindowStyle="ToolWindow" WindowStartupLocation="CenterScreen" Background="{DynamicResource BackgroundColor}" FontSize="18" Loaded="Window_Loaded">
    <Grid>
    	<Grid Margin="8" Grid.Column="1">
    		<Grid Height="40" VerticalAlignment="Top">
    			<Label HorizontalAlignment="Center" Content="All Orders" VerticalAlignment="Center"/>
    			<TextBox x:Name="tbSearch" HorizontalAlignment="Right" Margin="0,8" Width="200" TextWrapping="Wrap" FontSize="12"/>
    			<Image HorizontalAlignment="Right" Width="24" Source="/S7;Component/Resources/Graphics/Search.png" Stretch="Uniform" Height="24"/>
    		</Grid>
    		<dg:DataGrid x:Name="lbOrders" Background="#FF333333" Margin="0,40,0,0">
    			<dg:DataGrid.Columns>
    				<dg:DataGridTextColumn Header="Order Date" Binding="{Binding OrderDate}"/>
    				<dg:DataGridTextColumn Header="Order Time" Binding="{Binding OrderTime}"/>
    				<dg:DataGridTextColumn Header="Table" Binding="{Binding Table}"/>
    				<dg:DataGridTextColumn Header="Customer" Binding="{Binding Customer}"/>
    				<dg:DataGridTextColumn Header="Employee" Binding="{Binding Employee}"/>				
    			</dg:DataGrid.Columns>
    		</dg:DataGrid>
    	</Grid>
    </Grid>
</Window>